package serivce;

import org.springframework.stereotype.Service;
import untity.*;

import java.util.List;


public interface UserSerivce {
    boolean collection(HouseAndUser houseAndUser);
    boolean cancelCollection(HouseAndUser houseAndUser);
    Boolean checkCollection(HouseAndUser houseAndUser);
    List<BriefHouse> searchByUserID(String id,Integer count);
    List<Myrental> searchMyRental(String id,Integer count);

    void creatHistory(String userId);
    Boolean addHistory(LiShi liShi);

    List<Histroy> searchHistry(String id,Integer count);
    Boolean creatConnection(ChatRoomDB room);

    List<UserConnection> searchConnetion(String id);

    ChatRoomDB queryChatRoom(String userId,String landlordId);
    List<String> searchRoomId(String userId);

    Boolean changeData(BriefHouse house);

    void delete(String id);
}
